package demo;

import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Frame;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;
import java.util.Scanner;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

import test.model.ContactDAO;
import test.model.ContactFrame;
import net.MyChatServer;
import demo.event.DemoActionEventFrame;
import demo.ui.FormLogin;
import demo.ui.GameCanvas;
import demo.ui.MyPaint;
import demo.ui.StarPane;
import demo.ui.StrategyCanvas;
import demo.ui.TestAdaBoostFrame;

public class MyProgram {
	public static void main(String[] args){
		try {
			SwingUtilities.invokeAndWait(new Runnable(){
				public void run(){
					Frame mcs = new Frame();
					//mcs.add(new GameCanvas());
					StrategyCanvas cv = new StrategyCanvas();
					mcs.add(cv);
					mcs.pack();
					mcs.setVisible(true);
					cv.setup();
				}
			});
		} catch (InvocationTargetException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}//end method main
	
	static class MyRunnable implements Runnable{
		public void run(){
			
			FormLogin frm = new FormLogin();
			frm.setVisible(true);
		}
	}
}
